libxc/restore: introduce setup() and cleanup() on restore
authorYang Hongyang <yanghy@cn.fujitsu.com>
Thu, 14 May 2015 08:55:17 +0000 (16:55 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 14 May 2015 12:04:23 +0000 (13:04 +0100)
commitce44b40387d787f3c608c2bd0c39285971b8aea3
tree8b57d2d94752c952e6b67b08e10cdda7264ae5f9
parentc5c5a040947730049074a9eed643e913d4eaaa66
libxc/restore: introduce setup() and cleanup() on restore

introduce setup() and cleanup() which subsume the
ctx->restore.ops.{setup,cleanup}() calls and also
do memory alloc/free.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
tools/libxc/xc_sr_restore.c